namespace TheGunningMan

import Gunningine

//
// ShamblerModel
//
class ShamblerModel(Gunningine.Model):

    static def DoSmash(entity, worldState):
        pass
        // Create two stationary damage impulses which last for the
        // current frame only.  This way, multiple objects can be
        // damaged by them, but they only last one frame.
    
    def constructor():
        super("Models/shambler")
        
    override def SetFrameEvents():
        SetAnimationFrameEvent("smash", 9, DoSmash)

//
// Shambler
//
class Shambler(BasicSeekerEntity):

    def constructor(position, direction, worldState, alignment):
        super("Shambler", position, direction, worldState, alignment)
       
    override def Idle_OnEnter(*args):
        super(ShamblerModel(), "stand")
        
    override def Attack_OnEnter(*args):
        super("smash", args[0])
        
        